﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="ProductCategory.aspx.cs" Inherits="WebUI.AdminSite.Product.ProductCategory" %>
<%@ Import Namespace="WebUI.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="son-find-module width_full">
         <span class="labelTitle">Name</span>
        <asp:TextBox ID="txtName" CssClass="inputText" runat="server" />
        <asp:Button ID="btnSearch" runat="server" Text="Find" onclick="btnSearch_Click"/>
        <div style="height: 30px"></div>

        <asp:GridView ID="grdProducts" Width="100%" AutoGenerateColumns="False" 
             runat="server" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" 
             BorderWidth="1px" CellPadding="3">
            <Columns>
            <asp:BoundField DataField="STT" HeaderText="STT" />
            <asp:BoundField DataField="Name" HeaderText="Name" >
                <HeaderStyle Width="300px" />
                </asp:BoundField>
            
            
            <asp:BoundField DataField="DisplayOrder" HeaderText="DisplayOrder"  />
            <asp:BoundField DataField="Status" HeaderText="Status" />
            
            <asp:TemplateField HeaderText="View Details">
                <ItemTemplate>
                    
                    <asp:HyperLink ID="hplDetail" runat="server" NavigateUrl='<%# link.ToAdminProductCategoryDetails("ProductCategoryDetails.aspx", Eval("No").ToString()) %>'
                            Text="Details" />
                </ItemTemplate>
                
            </asp:TemplateField>
            <asp:CommandField ShowSelectButton="True" />
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
    </div>
    
</asp:Content>
